import query from '@dfeidao/atom-nodejs/db/query';
import log from '@dfeidao/atom-nodejs/logger/log';
import { systemid } from '../../atom/config';
interface Message {
	filter: {
		value_no: string
	};
	page_no: number;
}




export default async function atom(msg: Message, action_id: string, session_id: string) {
	log(`Service begin`);
	// todo查询
	const { exec, prepare } = query(action_id, session_id, systemid);
	prepare('property_optional_values', ['optional_value'], { value_no: msg.filter.value_no }, 100, 1, [], []);


	const [rs] = await exec();


	log(`Service end`);
	return rs;
}
